package com.guan.eduservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableDiscoveryClient //nacos注册
@EnableFeignClients //远程调用
@ComponentScan(basePackages = {"com.guan"}) //扫描组件 写com.guan可以扫描所有com.guan包下的配置类
public class EduApplication {


    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class);
    }

}

